package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class QuantifiedComparisonPredicatePart2 implements WhenOperand {

    private int beginIndex;
    private int endIndex;
    private CompOp compOp;
    private Quantifier quantifier;
    private Subquery tableSubquery;

    public QuantifiedComparisonPredicatePart2(CompOp compOp, Quantifier quantifier, Subquery tableSubquery) {
        this.beginIndex = compOp.getBeginIndex();
        this.endIndex = tableSubquery.getEndIndex();
        this.compOp = compOp;
        this.quantifier = quantifier;
        this.tableSubquery = tableSubquery;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public CompOp getCompOp() {
        return compOp;
    }

    public Quantifier getQuantifier() {
        return quantifier;
    }

    public Subquery getTableSubquery() {
        return tableSubquery;
    }

}
